package app.com.itcast.biyesheji.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import app.com.itcast.biyesheji.R;

public class WodeActivity extends AppCompatActivity {

    private ImageView shouye;
    private TextView denlu;
    private ImageView car;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_wode);
        initView();
        initData();
        initEvent();
    }

    private void initView() {
        shouye = findViewById(R.id.bottom_bar_image_course);
        denlu = findViewById(R.id.tv_user_denlu);
        car = findViewById(R.id.bottom_bar_image_exercises);

    }

    private void initData() {
    }

    private void initEvent() {
        denlu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(WodeActivity.this,DenluActivity.class);
                startActivity(intent);
            }
        });
        shouye.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(WodeActivity.this,ShouyeActivity.class);
                startActivity(intent);
            }
        });
        car.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(WodeActivity.this,CarActivity.class);
                startActivity(intent);
            }
        });
    }
}